package com.shopowner.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Shopowner implements Serializable {
    private String sno;

    private String stno;

    private String sname;

    private String simg;

    private String ssex;

    private String sage;

    private String spwd;

    private String semail;

    private String sstate;

    private String sdesc;

    private String salt;

    private static final long serialVersionUID = 1L;

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getStno() {
        return stno;
    }

    public void setStno(String stno) {
        this.stno = stno;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSimg() {
        return simg;
    }

    public void setSimg(String simg) {
        this.simg = simg;
    }

    public String getSsex() {
        return ssex;
    }

    public void setSsex(String ssex) {
        this.ssex = ssex;
    }

    public String getSage() {
        return sage;
    }

    public void setSage(String sage) {
        this.sage = sage;
    }

    public String getSpwd() {
        return spwd;
    }

    public void setSpwd(String spwd) {
        this.spwd = spwd;
    }

    public String getSemail() {
        return semail;
    }

    public void setSemail(String semail) {
        this.semail = semail;
    }

    public String getSstate() {
        return sstate;
    }

    public void setSstate(String sstate) {
        this.sstate = sstate;
    }

    public String getSdesc() {
        return sdesc;
    }

    public void setSdesc(String sdesc) {
        this.sdesc = sdesc;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Shopowner other = (Shopowner) that;
        return (this.getSno() == null ? other.getSno() == null : this.getSno().equals(other.getSno()))
            && (this.getStno() == null ? other.getStno() == null : this.getStno().equals(other.getStno()))
            && (this.getSname() == null ? other.getSname() == null : this.getSname().equals(other.getSname()))
            && (this.getSimg() == null ? other.getSimg() == null : this.getSimg().equals(other.getSimg()))
            && (this.getSsex() == null ? other.getSsex() == null : this.getSsex().equals(other.getSsex()))
            && (this.getSage() == null ? other.getSage() == null : this.getSage().equals(other.getSage()))
            && (this.getSpwd() == null ? other.getSpwd() == null : this.getSpwd().equals(other.getSpwd()))
            && (this.getSemail() == null ? other.getSemail() == null : this.getSemail().equals(other.getSemail()))
            && (this.getSstate() == null ? other.getSstate() == null : this.getSstate().equals(other.getSstate()))
            && (this.getSdesc() == null ? other.getSdesc() == null : this.getSdesc().equals(other.getSdesc()))
            && (this.getSalt() == null ? other.getSalt() == null : this.getSalt().equals(other.getSalt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSno() == null) ? 0 : getSno().hashCode());
        result = prime * result + ((getStno() == null) ? 0 : getStno().hashCode());
        result = prime * result + ((getSname() == null) ? 0 : getSname().hashCode());
        result = prime * result + ((getSimg() == null) ? 0 : getSimg().hashCode());
        result = prime * result + ((getSsex() == null) ? 0 : getSsex().hashCode());
        result = prime * result + ((getSage() == null) ? 0 : getSage().hashCode());
        result = prime * result + ((getSpwd() == null) ? 0 : getSpwd().hashCode());
        result = prime * result + ((getSemail() == null) ? 0 : getSemail().hashCode());
        result = prime * result + ((getSstate() == null) ? 0 : getSstate().hashCode());
        result = prime * result + ((getSdesc() == null) ? 0 : getSdesc().hashCode());
        result = prime * result + ((getSalt() == null) ? 0 : getSalt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sno=").append(sno);
        sb.append(", stno=").append(stno);
        sb.append(", sname=").append(sname);
        sb.append(", simg=").append(simg);
        sb.append(", ssex=").append(ssex);
        sb.append(", sage=").append(sage);
        sb.append(", spwd=").append(spwd);
        sb.append(", semail=").append(semail);
        sb.append(", sstate=").append(sstate);
        sb.append(", sdesc=").append(sdesc);
        sb.append(", salt=").append(salt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}